package com.hntest.dao;

import com.hntest.entity.CompanyBankInfo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository("companyBankInfoDao")
public interface CompanyBankInfoDao {

    //分页前求总记录数
    int getCounts(CompanyBankInfo companyBankInfo);

    //分页查当前页数据
    List<CompanyBankInfo> getListByPage(Map map);

    List<CompanyBankInfo> getAllBankName();

    //新增
    int insert(CompanyBankInfo companyBankInfo);

    //根据id查询原始记录
    CompanyBankInfo getCompanyBankInfoById(int cbiid);

    //更新最新的信息
    int update(CompanyBankInfo companyBankInfo);

}
